
import { Component, OnInit } from 'angular2/core';

@Component({
    selector: 'weui-toast',
    templateUrl: './app/component/toast/toast.html'
})

export class ToastComponent implements OnInit {

    private _showToast = false;
    private _showLoading = false;

    constructor() { }

    ngOnInit() { }

    showToast() {
        
        this._showToast = true;

        setTimeout(() => this._showToast=false, 2000);
    }

    showLoading() {

        this._showLoading = true;
        
        setTimeout(() => this._showLoading=false, 2000);
    }

}